#关于循环结构运算
   #for，for...else...
for i in'hello':
    print(i)
for j in range(100,999):
    ge=j%10
    shi=j//10%10
    bai=j//100
    sum=ge*ge*ge+shi*shi*shi+bai*bai*bai
    if sum==j:
        print(j)
   #关于while，while...else...
chose=input('还继续上课吗Y/N：')
while chose=='Y':
    print('class begin')
    chose = input('还继续上课吗Y/N：')
#100以内求和
s=0
k=0
while k<=100:
    s=s+k
    k=k+1
else:
    print('100以内和为',s)